A reader for a configuration source. More...
Public Member Functions | |
| ConfigReader () | |
| ~ConfigReader () | |
| bool | readConfigFile (const nkMemory::StringView &fileNameStr, ConfigHolder &toCopyInto) |
| bool | readConfigSource (const nkMemory::StringView &sourcesStr, ConfigHolder &toCopyInto) |
| bool | saveConfigToFile (const nkMemory::StringView &fileNameStr, ConfigHolder &toSave) |
| std::string | saveConfigToSource (ConfigHolder &toSave) |
A reader for a configuration source.
| nkGraphics::ConfigReader::ConfigReader | ( | ) |
Constructor.
| nkGraphics::ConfigReader::~ConfigReader | ( | ) |
Destructor.
| bool nkGraphics::ConfigReader::readConfigFile | ( | const nkMemory::StringView & | fileNameStr, |
| ConfigHolder & | toCopyInto | ||
| ) |
Reads a configuration file, from a path.
| fileNameStr | The file path, relative to the execution path. |
| toCopyInto | The configuration holder to populate. |
| bool nkGraphics::ConfigReader::readConfigSource | ( | const nkMemory::StringView & | sourcesStr, |
| ConfigHolder & | toCopyInto | ||
| ) |
Reads a configuration source.
| sourcesStr | The sources to read. |
| toCopyInto | The configuration to populate. |
| bool nkGraphics::ConfigReader::saveConfigToFile | ( | const nkMemory::StringView & | fileNameStr, |
| ConfigHolder & | toSave | ||
| ) |
Saves the configuration into a file.
| fileNameStr | The file path, relative to the execution path. |
| toSave | The configuration to save. |
| std::string nkGraphics::ConfigReader::saveConfigToSource | ( | ConfigHolder & | toSave | ) |
Saves the configuration's sources.
| toSave | The configuration to translate. |